﻿<UserControl x:Class="MathematicallySafe.HeadCounter.Views.RaiderChartsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit">

    <UserControl.Resources>

    </UserControl.Resources>
    
    <Grid>
        <chartingToolkit:Chart Title="Attendance">
            <chartingToolkit:LineSeries Title="Loot"  ItemsSource="{Binding Path=DataCollection.Values}"  
                                        IndependentValueBinding="{Binding WeekNumber}"  DependentValueBinding="{Binding TwelveWeekAttendance}">
                <chartingToolkit:LineSeries.DependentRangeAxis>
                    <chartingToolkit:LinearAxis Orientation="Y" Title="Attendance%" Minimum="30" Maximum="100" Interval="10" ShowGridLines="True"/>
                </chartingToolkit:LineSeries.DependentRangeAxis>
            </chartingToolkit:LineSeries>
            <chartingToolkit:LineSeries Title="6Wk%"  ItemsSource="{Binding Path=DataCollection.Values}"  
                                        IndependentValueBinding="{Binding WeekNumber}"  DependentValueBinding="{Binding SixWeekAttendance}">
                <chartingToolkit:LineSeries.DependentRangeAxis>
                    <chartingToolkit:LinearAxis Orientation="Y" Title="Attendance%" Minimum="30" Maximum="100" Interval="10" ShowGridLines="True"/>
                </chartingToolkit:LineSeries.DependentRangeAxis>
            </chartingToolkit:LineSeries>
            <chartingToolkit:Chart.Axes>
                <chartingToolkit:LinearAxis Orientation="X" Title="Week #" Minimum="1" Interval="1" ShowGridLines="True"/>
            </chartingToolkit:Chart.Axes>
        </chartingToolkit:Chart>
    </Grid>
    
</UserControl>
